<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>欢迎莅临 ZENBOSS —— 这是一个可以匿名的BLOG</title>
<link href="/storage/css/default.css" rel="stylesheet" type="text/css" />
<style>
.login_box{
	float:left;
	border:2px solid #ccc;
	width:165px;
	height:auto;
	padding:20px;
	}
.txt_input{
	width:250px;
	border:1px solid #bbb;
	padding:2px;
	}
</style>
<script type="text/javascript" src="/storage/js/common.js"></script>
<script type="text/javascript">
function change_v(id){
	var v_obj=document.getElementById(id);
	v_obj.style.backgroundImage="url(/tools.php?do=v&"+Math.random()+")";
//	v_obj.style.paddingLeft="40px";
//	
//	v_obj.style.width='110px';
//alert('ddddeeddd');
}
function show_submit_div(){
	var sd = document.getElementById('submit_div');

	if(sd.style.display=='none'){
		sd.style.display='block';
		
	}else{
		sd.style.display='none';
	}
	
}

</script>

</head>
<body>

<?php include('head.php') ?>

<div class="body">
	<table cellspacing="0" border="0" width="100%">
		<tr><td width="75%" valign="top">
			<table cellpadding="0" cellspacing="2" border="0" width="100%"><!-- 左边 -->
				<tr bgcolor="#eeeeee">
					<td style="padding:8px;">
						<span style="font-size:15px;">关键字 "<strong style="font-size:15px;"><?php echo $__ITEMS['w']?></strong>" 在<strong style="font-size:15px;"><?php echo $__ITEMS['type_string']?></strong>中的搜索结果:</span>
					</td>
				</tr>
<?php /****************** 打印文章 ********************/ ?>			
			<?php foreach ($__ITEMS['topic_arr'] as $topic):
			
				$color = ( $topic['topic_top_order']>0?"#f00":"#888" );
				$color = ( time() - $topic['topic_birthday'] < 3600*24 ? "#44f" : $color); //判断是否是新文章(24小时内)
			?>
				<tr bgcolor="#dddddd">
					<td style="margin:2px;padding:8px;border-left:5px solid <?php echo $color ?>">
					
						<span style="float: left;"><!-- 标题 -->
						<a class="title_a" href="/topic.php?tid=<?php echo $topic['topic_tid']?>"><span style="font-size:16px;font-weight:bold;"><?php echo $topic['topic_title']; ?></span></a>&nbsp;
						<?php echo ($topic['topic_top_order']>0?'<font color="#ff0000"><strong>[置顶]</strong>&nbsp;</font>':'');
							  echo ($topic['topic_is_best']==1?'&nbsp;<font color="#ff0000"><strong>[精华]</strong></font>':'');
							  echo ($topic['topic_is_recommend']==1?'&nbsp;<font color="#ff0000"><strong>[推荐]</strong></font>':'');
						 ?>
						</span><!-- 标题 end -->
						
						<span style="float: right;">
							<?php echo $topic['topic_reply_count'] ?>/<?php echo $topic['topic_see_count'] ?>
							<strong><a href="mailto:<?php echo ($topic_mail=strtr($topic['topic_email'],"@","#"))?>"><?php echo $topic_mail;?></a></strong>
						<?php echo date('Y-m-d',$topic['topic_birthday']) ?></span>
						
					</td>

				</tr>
				<?php if ($topic['topic_top_order']==0 && $_COOKIE['s']!='s'): ?>
					<tr bgcolor="#ffffff">
					<td style="padding:8px 18px 8px 18px;"><!-- 文章内容 -->
						<div class="list_inner_text">
							<?php if (trim($topic['topic_is_club'])==1) :?>
								<img onmouseover="resize_max_topic_img(this)" onmouseout="resize_min_topic_img(this);" onerror="this.src='/storage/img/no_img.jpg'" class="list_inner_img" src="<?php echo htmlspecialchars(tools_pick_Value__($topic['topic_theme_pic'],$topic['club_user_theme_pic'])) ?>" /><br /><br />
								
							<?php endif;?>
							
							<?php echo htmlspecialchars(mb_substr($topic['topic_body'],0,300,PAGE_CHAR_SET)); ?>&nbsp;…………&nbsp;&nbsp;&nbsp;<?php echo ($topic['tag_text']?'<br /><span style="color:#888888;">tag:'.$topic['tag_text'].'</span>':'') ?>
							
						</div>
					</td>
					</tr>
					<tr><td><center><hr width="30%" size="1" /><br /></center></td></tr>
				<?php endif; ?>
			<?php endforeach; ?>
<?php /****************** 打印文章 结束********************/ ?>						
			<tr><td><strong><center style="font-size:15px;"><?php echo $__ITEMS['navigat_html'] ?></center></strong><br /><hr size="1" /><br /></td></tr>

			</table>
		</td>
		<td  valign="top"><!-- 右边 -->
			<table cellpadding="0" cellspacing="2" border="0" width="100%">
			
				<tr bgcolor="#dddddd">
					<td style="padding:8px;"><form method="GET" action="/search.php"><input onfocus="this.value='';" name="w" class="txt_input" style="width:150px;" type="text" value="请输入:日期、标题或Email" />&nbsp;<input class="txt_input" style="width:50px;height:22px;" type="submit" value="搜索" ></form></td>
				</tr>
				
				<tr bgcolor="#dddddd">
					<td style="padding:8px;" align="left"><strong style="font-size:16px;">标签</strong></td>
				</tr>
				<tr>
					<td style="padding:8px;" align="left" class="tag"><?php foreach ($__ITEMS['tag_all'] as $value)
																{echo '<a href="/search.php?t=tag&w=',$value['topic_tag_words'],'">',$value['topic_tag_words'],'</a>','<sup>',$value['count'],'</sup>','&nbsp;&nbsp;';}
															?></td>
				</tr>
				
				<tr bgcolor="#dddddd">
					<td style="padding:8px;" align="right"><a href="/club.php"><strong style="font-size:16px;">进入俱乐部(20会员)&gt;&gt;&gt;</strong></a></td>
				</tr>
				
				<tr>
					<td style="padding:8px;" align="left"><hr size="1" /></td>
				</tr>
				
				<tr bgcolor="#dddddd">
					<td style="padding:8px;" align="right"><strong style="font-size:16px;">友情链接</strong></td>
				</tr>
				<tr>
					<td style="padding:8px;" align="left"><?php foreach ($__ITEMS['friend_link_list'] as $key => $value){//打印友情连接
												echo '&nbsp;<a href="'.$value['friend_link_url'].'">'.$value['friend_link_txt'].'</a>&nbsp;';
											} ?></td>
				</tr>
				<?php include('ad.tpl.php') ?>
			</table>
		</td>
		
		</tr>
	</table>

</div>

</div>
<?php include('foot.php') ?>
</body>
</html>
